home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_HDF.idb / usr / freeware / include / hdf / dfstubs.h.z / dfstubs.h
Encoding:
C/C++ Source or Header  |  1999-01-26  |  2.4 KB  |  76 lines

  1. /****************************************************************************
  2.  * NCSA HDF                                                                 *
  3.  * Software Development Group                                               *
  4.  * National Center for Supercomputing Applications                          *
  5.  * University of Illinois at Urbana-Champaign                               *
  6.  * 605 E. Springfield, Champaign IL 61820                                   *
  7.  *                                                                          *
  8.  * For conditions of distribution and use, see the accompanying             *
  9.  * hdf/COPYING file.                                                        *
  10.  *                                                                          *
  11.  ****************************************************************************/
  12.  
  13. /* $Id: dfstubs.h,v 1.10 1996/03/28 21:57:12 koziol Exp $ */
  14.  
  15. /*
  16.    ** FILE
  17.    **   dfstubs.h
  18.    ** PURPOSE
  19.    **   Header file for "dfstubs.c" HDF 3.1 emulation using new routines
  20.    **   from "hfile.c".
  21.    ** AUTHOR
  22.    **   Doug Ilg
  23.  */
  24.  
  25. #ifndef DFSTUBS_H   /* avoid re-inclusion */
  26. #define DFSTUBS_H
  27. /* This is the master HDF driver (taking the place of df.c), so... */
  28. #define DFMASTER
  29. #undef PERM_OUT     /* used to "comment out" code */
  30.  
  31. #include "df.h"
  32. #undef DFMASTER
  33.  
  34. #if !defined(__GNUC__) & !defined(CONVEX) & !defined(VMS)
  35. #include <memory.h>
  36. #endif /* !__GNUC__ & !CONVEX & !VMS */
  37.  
  38. #define DFACC_APPEND    8
  39. #define DFEL_ABSENT 0
  40. #define DFEL_RESIDENT   1
  41. #define DFSRCH_OLD  0
  42. #define DFSRCH_NEW  1
  43.  
  44. PRIVATE int32 DFid = 0;
  45. PRIVATE int32 DFaid = 0;
  46. PRIVATE int DFaccmode = 0;
  47. PRIVATE int DFelaccmode = 0;
  48. PRIVATE uint16 search_tag = 0;
  49. PRIVATE uint16 search_ref = 0;
  50. PRIVATE int search_stat = DFSRCH_NEW;
  51. PRIVATE int32 search_aid = 0;
  52. PRIVATE int DFelstat = DFEL_ABSENT;
  53. PRIVATE int32 DFelsize = 0;
  54. PRIVATE int32 DFelseekpos = 0;
  55. PRIVATE uint16 acc_tag = 0;
  56. PRIVATE uint16 acc_ref = 0;
  57. PRIVATE char *DFelement = NULL;
  58.  
  59. #if defined c_plusplus || defined __cplusplus
  60. extern      "C"
  61. {
  62. #endif                          /* c_plusplus || __cplusplus */
  63.  
  64. /* prototypes for internal routines */
  65.     PRIVATE int DFIclearacc
  66.                 (void);
  67.  
  68.     PRIVATE int DFIcheck
  69.                 (DF * dfile);
  70.  
  71. #if defined c_plusplus || defined __cplusplus
  72. }
  73. #endif                          /* c_plusplus || __cplusplus */
  74.  
  75. #endif                          /* DFSTUBS_H */
  76.